package com.finance.logistics.computer;

import com.finance.framework.lang.Page;
import com.finance.system.bean.pojo.RecomputeTask;
import lombok.Data;

import java.util.Date;

/**
 * Created by CBWL on 2017/6/6.
 */
@Data
public class DataExtractorParam {
    private Date signDate;
    private RecomputeTask recomputeTask;
    private int feeCommited;
    private Page page;
    private DataExtractorParam(Builder builder){
        this.signDate = builder.signDate;
        this.recomputeTask = builder.recomputeTask;
        this.feeCommited = builder.feeCommited;
        this.page = builder.page;
    }

    public static class Builder {
        private Date signDate;
        private RecomputeTask recomputeTask;
        private int feeCommited;
        private Page page;
        public Builder signDate(Date signDate){
            this.signDate = signDate;
            return this;
        }
        public Builder recomputeTask(RecomputeTask recomputeTask){
            this.recomputeTask = recomputeTask;
            return this;
        }
        public Builder feeCommited(int feeCommited){
            this.feeCommited = feeCommited;
            return this;
        }
        public Builder page(Page page){
            this.page = page;
            return this;
        }
        public DataExtractorParam build(){
            return new DataExtractorParam(this);
        }
    }
}
